import {
    request
} from "../http";
import api from "../base";

// 获取首页数据
export const gethomedata = (data) => {
    return request('get', api.baseUrl + "WebAPI/ApiSolutionAsync", data)
}
// 门户起始目的地查询
export const gearea = (data) => {
    return request('get', api.baseUrl + "WebAPI/GetArea", data)
}
// 下单接口
export const DemandOrder = (data) => {
    return request('post', api.baseUrl + "WebAPI/DemandOrder", data)
}
// 获取收藏夹的数据
export const getfavorites = (data) => {
    return request('get', api.baseUrl + "WebAPI/ProductFavorites", data)
}
// 获取消息
export const getnews = (data) => {
    return request('get', api.baseUrl + "WebAPI/OrderSolutionNews", data)
}
// 消息状态
export const UpdateOrderSolutionNews = (data) => {
    return request('post', api.baseUrl + "WebAPI/UpdateOrderSolutionNews", data)
}
// 点击收藏
export const postfavorites = (data) => {
    return request('post', api.baseUrl + "WebAPI/UserProductFavorites", data)
}
// 获取产品信息
export const GetProductBriefInfoByCode = (data) => {
    return request('get', api.baseUrl + "WebAPI/GetProductBriefInfoByCode", data)
}
// 危险等级
export const GetRiskGradeInfo = (data) => {
    return request('get', api.baseUrl + "WebAPI/GetRiskGradeInfo", data)
}
// 包装
export const GetRefCodes = (data) => {
    return request('get', api.baseUrl + "WebAPI/GetRefCodes", data)
}
